package net.starwifi.duobao.wx;

import net.starwifi.duobao.utils.JsonUtils;

/**
 * Created by Administrator on 2016/3/14 0014.
 */
public class WXTicketResponse {

    //{
//    "errcode":0,
//            "errmsg":"ok",
//            "ticket":"bxLdikRXVbTPdHSM05e5u5sUoXNKd8-41ZO3MhKoyN5OfkWITDGgnr2fwJ0m9E8NYzWKVZvdVtaUgWvsdshFKA",
//            "expires_in":7200
//}

    private  int errcode;
    private  String errmsg;
    private  String ticket;
    private  int expires_in;


    public static WXTicketResponse parseStr(String jsonStr){
        WXTicketResponse wxResponse=JsonUtils.toObject(jsonStr,WXTicketResponse.class);
        return wxResponse;
    }

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }
}
